package org.chen.common.flight.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class FlightApiConfigDTO {
    
    @Min(value = 5000, message = "超时时间不能少于5秒")
    @Max(value = 60000, message = "超时时间不能超过60秒")
    private Integer timeout;
    
    @Min(value = 0, message = "重试次数不能为负数")
    @Max(value = 5, message = "重试次数不能超过5次")
    private Integer retryCount;
    
    private String cookie;
    
    private String token;
    
    private Boolean enabled;
}